/* overwrite to use full black for enabled buttons */
.x-btn-inner-default-toolbar-small {
    font:
        300 12px / 16px helvetica,
        arial,
        verdana,
        sans-serif;
    color: #000;
    padding: 0 5px;
    max-width: 100%;
}

/* add missing class for context menu header */
.x-menu-header {
    font:
        400 13px / 20px "Open Sans",
        "Helvetica Neue",
        helvetica,
        arial,
        verdana,
        sans-serif;
    color: #fff;
    padding: 4px;
    background-color: #3892d4;
}

/* make the upper window end visible */
.x-css-shadow {
    box-shadow: rgb(136, 136, 136) 0px -1px 15px !important;
}

/* reduce tree space */
.x-grid-cell-inner-treecolumn {
    /* vertical padding */
    padding: 4px 0px 3px 0px;
}

/* horizontal distance between parent and child leaf */
.x-tree-elbow-img {
    width: 14px;
}

/* adjust horizontal position of menu icons */
.x-menu-item-icon-default {
    top: 5px;
    left: 3px;
    font-size: 14px;
}

/* this gives a better placement for the font-awesome icons */
.x-btn-icon-el-default-toolbar-small {
    height: 14px;
}

/* this icon looks weird in sizes not n*14px */
.x-btn-icon-el-default-toolbar-small.fa-ellipsis-v {
    font-size: 14px;
}

.x-btn-icon-el-default-small {
    height: 14px;
    font-size: 14px;
}

/* icons for tree/snapshots/menus/etc.. */

/* overwrite folder icons of theme */
.x-tree-icon-parent,
.x-tree-icon-parent-expanded,
.x-tree-icon-leaf {
    background: none;
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1.25em;
    line-height: 1.6em;
    color: #555;
    margin-right: 5px;
}

.x-tree-icon-parent:not(.x-tree-icon-custom):before {
    content: "\f114";
}

.x-tree-icon-parent-expanded:not(.x-tree-icon-custom):before {
    content: "\f115";
}

/* loading in task list */
.x-grid-row-loading {
    background: no-repeat center center;
    background-image: url(../images/spinner.svg);
}

/* for font-awesome colors */
/* tree icons */

/* big symbols */
.x-tree-icon-custom {
    font-size: 1.25em;
    line-height: 1.6em;
    color: #555;
    margin-right: 5px;
}

/* grid icons (resources, etc) */
.x-grid-icon-custom {
    font-size: 1.25em;
    color: #555;
    margin-right: 5px;
}

/* the running vms are darker */
.x-tree-icon-custom.running,
.x-grid-icon-custom.running {
    color: #000;
}

/* stopped and offline items are greyed out */
.x-tree-icon-custom.stopped,
.x-grid-icon-custom.stopped,
.x-tree-icon-custom.offline,
.x-grid-icon-custom.offline {
    color: #cfcfcf;
}

/* the small icons */
.x-tree-icon-custom:after,
.x-grid-icon-custom:after {
    position: relative;
    left: -5px;
    top: 1px;
    font-size: 0.75em;
    text-shadow: -1px 0px 2px #fff;
    content: "\ ";
}

/* the green check */
.x-tree-icon-custom.online:after,
.x-grid-icon-custom.online:after {
    content: "\f058";
    color: #21bf4b;
}

/* the grey '?' */
.x-tree-icon-custom.unknown:after,
.x-grid-icon-custom.unknown:after {
    content: "\f059";
    color: #888;
}

/* the play symbol */
.x-tree-icon-custom.running:after,
.x-grid-icon-custom.running:after {
    content: "\f04b";
    color: #21bf4b;
}

/* the pause symbol */
.x-tree-icon-custom.paused:after,
.x-grid-icon-custom.paused:after {
    content: "\f04c";
    color: #cc8e00;
    font-size: 0.6em;
}

/* the suspend symbol */
.x-tree-icon-custom.suspended:after,
.x-grid-icon-custom.suspended:after {
    content: "\f04c";
    color: #cc8e00;
    font-size: 0.6em;
}

/* lock icons */
.x-tree-icon-custom.locked:after,
.x-grid-icon-custom.locked:after {
    content: "\f023";
    color: #000000;
}

.x-tree-icon-custom.lock-backup:after,
.x-grid-icon-custom.lock-backup:after {
    content: "\f0c7";
    color: #000000;
}

.x-tree-icon-custom.lock-migrate:after,
.x-grid-icon-custom.lock-migrate:after {
    content: "\f1d9";
    /* color: #21BF4B; */
    color: #000000;
    font-size: 0.75em;
}

.x-tree-icon-custom.lock-suspending:after,
.x-grid-icon-custom.lock-suspending:after {
    content: "\f019";
    color: #cc8e00;
    font-size: 0.75em;
}

.x-tree-icon-custom.lock-suspended:after,
.x-grid-icon-custom.lock-suspended:after {
    content: "\f019";
    color: #000000;
    font-size: 0.75em;
}

/* blue wrench */
.x-tree-icon-custom.ha-maintenance:after,
.x-grid-icon-custom.ha-maintenance:after {
    content: "\f0ad";
    color: #3892d4;
    /* make it a little bigger since the icon is very small */
    font-size: 14px;
}

/* yellow ! triangle */
.x-tree-icon-custom.pending:after,
.x-grid-icon-custom.pending:after,
.x-tree-icon-custom.io-error:after,
.x-grid-icon-custom.io-error:after,
.x-tree-icon-custom.internal-error:after,
.x-grid-icon-custom.internal-error:after,
.x-tree-icon-custom.guest-panicked:after,
.x-grid-icon-custom.guest-panicked:after {
    content: "\f071";
    color: #ffcc00;
}

/* the red x */
.x-tree-icon-custom.error:after,
.x-grid-icon-custom.error:after,
.x-tree-icon-custom.offline:after,
.x-grid-icon-custom.offline:after,
.x-tree-icon-custom.ha-error:after,
.x-grid-icon-custom.ha-error:after {
    content: "\f057";
    color: #cc1800;
}

/*
 * using background-image doesn't work for treelist-items, so use content. See:
 * https://forum.sencha.com/forum/showthread.php?339656-extjs-6-treelist-custom-iconcls-can-not-working
 */
.pve-itype-treelist-item-icon-cdrom {
    top: 50%;
    transform: translateY(-50%);
    content: url(../images/icon-cd-drive.svg);
}

/* the lxc template */
.x-tree-icon-custom.lxc:after,
.x-grid-icon-custom.lxc:after {
    content: "\f1b2";
    background: #fff;
}

.x-treelist-item-icon.lxc:after {
    content: "\f1b2";
    background: #fff;
    font-size: 0.75em;
    margin-left: -25%;
}

/* the qemu template */
.x-tree-icon-custom.qemu:after,
.x-grid-icon-custom.qemu:after {
    content: "\f108";
    background: #fff;
}

/* fixes background on mouseover and selected items */
.x-treelist-item-over .lxc:after,
.x-grid-item-over .qemu:after,
.x-grid-item-over .lxc:after {
    background-color: #e2eff9;
    text-shadow: -1px 0px 2px #e2eff9;
}

.x-treelist-item-selected .lxc:after,
.x-grid-item-selected .qemu:after,
.x-grid-item-selected .lxc:after {
    background-color: #c2ddf2;
    text-shadow: -1px 0px 2px #c2ddf2;
}

.pve-itype-icon-virt-viewer,
.pve-itype-icon-novnc,
.pve-itype-icon-xtermjs,
.pve-itype-icon-cdrom,
.pve-itype-icon-qemu-template,
.pve-itype-icon-qemu-running,
.pve-itype-icon-lxc-template,
.pve-itype-icon-node,
.pve-itype-icon-node-running,
.pve-itype-icon-pool,
.pve-itype-icon-serial,
.pve-itype-icon-cloud,
.pve-itype-icon-pci,
.pve-itype-icon-cpu,
.pve-itype-icon-memory,
.pve-itype-icon-die {
    background-repeat: no-repeat;
    background-position: 3px center;
    padding-left: 20px;
}

/* fix alignment for VM hardware add menu */
.pve-add-hw-menu .x-menu-item-icon:not(.fa) {
    left: 1px;
}

.pve-itype-fa > .x-grid-cell-inner {
    padding-left: 3px;
}

.pve-grid-fa {
    margin-right: 10px;
    font-size: 14px;
}

.pve-itype-icon-cdrom {
    background-size: 16px;
    background-image: url(../images/icon-cd-drive.svg);
}

.pve-itype-icon-novnc {
    background-size: 16px;
    background-image: url(../images/novnc.svg);
}

.pve-itype-icon-virt-viewer {
    background-size: 16px;
    background-image: url(../images/virt-viewer.svg);
}

.pve-itype-icon-xtermjs {
    background-size: 16px;
    background-image: url(../images/xtermjs.svg);
}

.pve-itype-icon-pci {
    background-size: 16px 16px;
    background-image: url(../images/icon-pci.svg);
}

.pve-itype-icon-serial {
    background-size: 16px;
    background-image: url(../images/icon-serial.svg);
}

.pve-itype-icon-cloud {
    background-size: 16px;
    background-image: url(../images/icon-cloud.svg);
}

.pve-itype-icon-die {
    background-size: 16px;
    background-image: url(../images/icon-die.svg);
}

.pve-itype-icon-cpu {
    background-size: 16px;
    background-image: url(../images/icon-cpu.svg);
}

.pve-itype-icon-memory {
    background-size: 16px;
    background-image: url(../images/icon-memory.svg);
}

.pve-icon {
    height: 16px;
    background-position: bottom;
    vertical-align: bottom;
    padding: 0;
}

/* displayfield minheight is wrong */
.x-form-display-field-default {
    min-height: 20px;
}

.x-button-reset:before {
    font-size: 16px;
}

/* for resetcolumnsbutton */
.x-button-reset:after {
    content: "\f0e7 ";
    position: relative;
    text-shadow: 0 0 2px #fff;
    left: -3px;
    top: 2px;
}

.proxmox-inline-button .x-btn-inner {
    color: black;
}

/* for info widget */
div.left-aligned {
    float: left;
}

div.right-aligned {
    float: right;
}

.x-progress.critical .x-progress-bar {
    background-color: #ff8888;
}

.x-progress.warning .x-progress-bar {
    background-color: #ffcc00;
}

.x-treelist-pve-nav {
    background-color: #f5f5f5;
}

.x-treelist-row {
    margin-top: 5px;
}

.x-treelist-item-icon {
    color: #000;
    margin-left: 2px;
}

.x-treelist-item-text {
    color: #000;
    padding-left: 5px;
    padding-right: 5px;
}

.fa-ceph:before {
    width: 14px;
    height: 14px;
    position: absolute;
    left: 1px;
    top: 5px;
    background-image: url(../images/logo-ceph.svg);
    background-size: 14px 14px;
    content: " ";
}

.x-fa-sdn-treelist:before {
    width: 14px;
    height: 14px;
    position: absolute;
    left: 1px;
    top: 4px;
}

.fa-sdn:before {
    background-image: url(../images/icon-sdn.svg);
    background-size: 14px 14px;
    content: " ";
}

.fa-network-wired:before {
    background-image: url(../images/icon-fa-network-wired.svg);
    background-size: 14px 14px;
    content: " ";
}

.x-fa-treepanel:before {
    width: 16px;
    height: 24px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
}

.x-tree-icon-none {
    display: none;
}

.x-treelist-row-over > * > .x-treelist-item-icon,
.x-treelist-row-over > * > .x-treelist-item-text {
    color: #000;
}

/* for the ceph monitor widgets */
div.monitor {
    text-align: left;
    border: #cfcfcf solid 1px;
    border-radius: 2px;
    margin: 2px;
    padding: 5px 8px;
}

/* for auto layout */
div.inline-block {
    display: inline-block;
    vertical-align: top;
}

/* ceph dashboard osd table styling */
table.osds {
    border-collapse: collapse;
    margin: auto;
}

table.osds td {
    padding: 4px;
    text-align: right;
    border-right: 1px solid #cfcfcf;
}

table.osds td:last-of-type {
    border-right: 0;
}

table.osds tr {
    border-bottom: 1px solid #cfcfcf;
}

table.osds tr:last-of-type {
    border-bottom: 0;
}

table.osds td:first-of-type {
    text-align: left;
}

.pointer {
    cursor: pointer;
}

.cursor-move {
    cursor: move;
}

.x-grid-filters-filtered-column {
    font-style: italic;
    font-weight: bold;
}

.x-grid-filters-filtered-column .x-column-header-text:after {
    font: normal normal normal 14px / 1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: " \f0b0 ";
    color: #555;
    float: right;
    padding-right: 1em;
}

.proxmox-invalid-row {
    background-color: #f3d6d7;
}

.pve-static-mask div.x-mask-msg-text {
    padding: 10px;
    background-image: none;
}

.pve-toolbar-bg {
    background-color: #f5f5f5;
}

.x-fa {
    display: inline-block;
    font: normal normal normal 14px / 1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.usage-wrapper {
    margin-left: -7px;
    vertical-align: text-bottom;
    display: inline-block;
    width: 8px;
    height: 1.2em;
    border: 1px solid #555;
    border-radius: 1px;
    padding: 1px;
}

.usage-negative {
    left: 0px;
    right: 0px;
}

.usage {
    left: 0px;
    right: 0px;
    background-color: #555;
}

.install-mask {
    background-color: rgb(245, 245, 245);
    color: #000;
}

.x-pveColorPicker-default-cell > .x-grid-cell-inner {
    padding-top: 0px;
    padding-bottom: 0px;
}

.pve-edit-tag > i {
    cursor: pointer;
    font-size: 14px;
    line-height: 15px;
    height: 15px;
}

.pve-edit-tag > i.handle {
    padding-right: 5px;
    cursor: grab;
}

.hide-handles .pve-edit-tag > i.handle {
    display: none;
    padding-right: 0px;
}

.pve-edit-tag > i.action {
    padding-left: 5px;
}

.pve-edit-tag.normal > i {
    display: none;
}

.pve-edit-tag.editable span {
    background-color: #ffffff;
    border: 1px solid #a8a8a8;
    color: #000;
    padding-left: 2px;
    padding-right: 2px;
    min-width: 2em;
    display: inline-block;
    line-height: 15px;
    height: 15px;
    vertical-align: top;
    box-sizing: content-box;
}

.pve-tag-inline-button {
    cursor: pointer;
    padding-left: 2px;
}

.x-grid-item .x-item-disabled {
    opacity: 0.3;
}

.pmx-action-hidden:before {
    opacity: 0;
    cursor: default;
}

.pve-ceph-warning-detail {
    overflow: auto;
    white-space: pre-wrap;
    margin: 0;
    padding-bottom: 10px;
    font-weight: normal;
}

.pve-ceph-status-busy {
    color: #3892d4;
}

.pmx-opacity-75 {
    opacity: 0.75;
}

/* tag edit fields must be aligned manually in the fieldset */
.proxmox-tag-fieldset.proxmox-tags-full .x-component.x-column {
    margin: 2px;
}

/* we have to override some styles for the tag tooltips,
 * otherwise extjs styling interferes */
.pmx-tag-tooltip {
    background-color: transparent;
}

.pmx-tag-tooltip .proxmox-tags-full > span {
    margin: 0px;
}

.pmx-column-wrapped > div {
    white-space: pre-wrap;
}
